package com.entity.view;/*
 *
 *作者：张继成
 *任务：后端返回视图实体辅助类
 *
 *备注：心理老师
 *@Date2023/06/11/11:24
 ***/

import com.baomidou.mybatisplus.annotations.TableName;
import com.entity.XinlilaoshiEntity;
import org.apache.commons.beanutils.BeanUtils;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;

@TableName("xinlilaoshi")
public class XinlilaoshiView extends XinlilaoshiEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    public XinlilaoshiView(){
    }

    public XinlilaoshiView(XinlilaoshiEntity xinlilaoshiEntity){
        try {
            BeanUtils.copyProperties(this, xinlilaoshiEntity);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}
